Skip to content

If the addin cannot be properly loaded, just skip the file.#11

Merged
anshivashankar merged 2 commits intomasterfrom
xml-encoding-fix
May 15, 2023
Merged

If the addin cannot be properly loaded, just skip the file.#11
anshivashankar merged 2 commits intomasterfrom
xml-encoding-fix

Conversation

@anshivashankar
Copy link
Copy Markdown
Collaborator

No description provided.

@anshivashankar anshivashankar requested a review from zhuliice May 15, 2023 17:43
catch
{
// if the XML is malformed or not parse-able, just continue
continue;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it ever happen that *.addin is malformed?
Instead of ignoring the error in silence, we'd better at least pop out an error message by "MessageBox.Show"(for example).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it does, see issue filed last year here: #8
We also see some issues on stackoverflow: https://stackoverflow.com/questions/76132803/forge-design-automation-debug-revit-plugin-locally-tutorial-not-working

(however, we can certainly throw an message)

@anshivashankar anshivashankar merged commit 2e3533e into master May 15, 2023
@anshivashankar anshivashankar deleted the xml-encoding-fix branch May 15, 2023 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants